<template>
		<view class="pageheader">
			<view style="width: 100upx;color:#fff;text-align: center;font-size:17px;">
				<label @click="clickback">
					<image style="width: 24px;;height: 24px;position: relative;top:7px;"
					src="../../static/icon/12.png"></image>
					 
				</label>	
			</view>
			<view style="width: 100upx;text-align: center;
				color:#1698DC;font-size: 0.65rem;" 
					name="left">
				<view v-if="closecardflag">关闭</view>
			</view>
			<view style="width: 350upx;text-align: center;font-size: 34upx;color:#FFFFFF"
				name="title">{{title}}</view>
			<view style="width: 100upx;text-align: center;">
				
			</view>
			<view style="width: 100upx;text-align: center;" 
					name="right">
					<view v-if="checkflag" style="position: absolute;right: 22upx;">
						<image style="width: 24px;;height: 24px;position: relative;top:7px;"
						src="../../static/icon/13.png"></image>
					</view>
			</view>
		</view>
</template>

<script>
	export default {
		name: 'backheader',

		props: {
			closecardflag: {
				type: Boolean,
				default: false,
			},
			checkflag: {
				type: Boolean,
				default: false,
			},
			// 提供一些默认值, 以及必传值
			title: {
				type: String,
				default: '标题',
				required: true
			}
		},
		data() {
			return {

			}
		},
		methods: {
			clickback(e) {

				uni.navigateBack({

				})
			}
		}
	}
</script>

<style>
	.pageheader {
		background-color: #1E91E6;
		height: 88upx;
		display: flex;
		line-height: 88upx;
		/* position: absolute; */
		top: 0;
		z-index: 9999;
	}
</style>
